﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AspxGridView.aspx.cs" Inherits="DxExpress_AspxGridView" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1.Export, Version=10.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dxwgv" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <dx:ASPxGridView ID="UserList" ClientInstanceName="UserList" runat="server" AutoGenerateColumns="False"
            Width="100%" ClientIDMode="AutoID" KeyFieldName="GUID" Settings-ShowHorizontalScrollBar="true"
            OnCustomCallback="UserList_CustomCallback" OnCustomColumnDisplayText="UserList_CustomColumnDisplayText"
            CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua">
            <ImagesFilterControl>
                <LoadingPanel Url="~/App_Themes/Aqua/Editors/Loading.gif">
                </LoadingPanel>
            </ImagesFilterControl>
            <Images SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css">
                <LoadingPanelOnStatusBar Url="~/App_Themes/Aqua/GridView/gvLoadingOnStatusBar.gif">
                </LoadingPanelOnStatusBar>
                <LoadingPanel Url="~/App_Themes/Aqua/GridView/Loading.gif">
                </LoadingPanel>
            </Images>
            <SettingsText EmptyDataRow="暂无数据"></SettingsText>
            <Columns>
                <dx:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0" Name="0" Width="20px">
                    <HeaderTemplate>
                        <table cellspacing="0" cellpadding="0" style="width: 100%; border-collapse: collapse;">
                            <tr>
                                <td style="color: White;">
                                    <input type="checkbox" onclick="UserList.SelectAllRowsOnPage(this.checked);" title="Select/Unselect all rows on the page" />
                                </td>
                            </tr>
                        </table>
                    </HeaderTemplate>
                    <CellStyle Paddings-Padding="0">
                        <Paddings Padding="0px"></Paddings>
                    </CellStyle>
                </dx:GridViewCommandColumn>
                <dx:GridViewDataHyperLinkColumn Caption="客户姓名" FieldName="GUID" VisibleIndex="1" Settings-SortMode="DisplayText"
                    Name="1">
                    <PropertiesHyperLinkEdit NavigateUrlFormatString="../ShowCustomer.aspx?guid={0}"
                        TextField="客户姓名">
                    </PropertiesHyperLinkEdit>
                </dx:GridViewDataHyperLinkColumn>
                <dx:GridViewDataTextColumn Caption="证件号码" FieldName="证件号码" VisibleIndex="2" Name="2"
                    Width="150">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="客户类型" FieldName="客户类别" Name="3" VisibleIndex="3">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="账户分析" FieldName="" VisibleIndex="4" Name="4">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="现有盈亏金额(元)" FieldName="现有收益" VisibleIndex="5"
                    Name="5">
                    <PropertiesTextEdit DisplayFormatString="0.00">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="现有收益率" FieldName="现有收益率" VisibleIndex="6" Name="6"
                    SortOrder="Descending">
                    <PropertiesTextEdit DisplayFormatString="{0:0.00}%">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="持有只数(只)" FieldName="持有支数" VisibleIndex="7" Name="7">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="总市值(元)" FieldName="现有市值" VisibleIndex="8" Name="8">
                    <PropertiesTextEdit DisplayFormatString="0.00">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="金融资产(元)" FieldName="金融资产" VisibleIndex="9" Name="9">
                    <PropertiesTextEdit DisplayFormatString="0.00">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="基金占比" FieldName="导入基金占比" VisibleIndex="10" Name="10">
                    <PropertiesTextEdit DisplayFormatString="{0:0.00}%">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
            </Columns>
            <SettingsBehavior AllowDragDrop="False" AllowGroup="False" />
            <SettingsLoadingPanel ImagePosition="Top" />
            <SettingsPager PageSize="10">
                <FirstPageButton Text="首页">
                </FirstPageButton>
                <LastPageButton Text="末页">
                </LastPageButton>
                <Summary AllPagesText="" Text="第{0}页 共{1}页({2}项)" />
            </SettingsPager>
            <Settings ShowHorizontalScrollBar="True"></Settings>
            <SettingsText EmptyDataRow="暂无数据" />
            <Styles CssPostfix="Aqua" CssFilePath="~/App_Themes/Aqua/{0}/styles.css">
                <LoadingPanel ImageSpacing="8px">
                </LoadingPanel>
            </Styles>
            <ClientSideEvents ColumnSorting="function(s, e) {
                debugger;
                var sortcolumn = e.column.fieldName;
                s.PerformCallback('null|' +sortcolumn);
                setFlag();
                e.cancel=true;
}" />
            <StylesEditors>
                <CalendarHeader Spacing="1px">
                </CalendarHeader>
                <ProgressBar Height="25px">
                </ProgressBar>
            </StylesEditors>
            <ImagesEditors>
                <DropDownEditDropDown>
                    <SpriteProperties HottrackedCssClass="dxEditors_edtDropDownHover_Aqua" PressedCssClass="dxEditors_edtDropDownPressed_Aqua" />
                </DropDownEditDropDown>
                <SpinEditIncrement>
                    <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditIncrementImageHover_Aqua"
                        PressedCssClass="dxEditors_edtSpinEditIncrementImagePressed_Aqua" />
                </SpinEditIncrement>
                <SpinEditDecrement>
                    <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditDecrementImageHover_Aqua"
                        PressedCssClass="dxEditors_edtSpinEditDecrementImagePressed_Aqua" />
                </SpinEditDecrement>
                <SpinEditLargeIncrement>
                    <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditLargeIncImageHover_Aqua"
                        PressedCssClass="dxEditors_edtSpinEditLargeIncImagePressed_Aqua" />
                </SpinEditLargeIncrement>
                <SpinEditLargeDecrement>
                    <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditLargeDecImageHover_Aqua"
                        PressedCssClass="dxEditors_edtSpinEditLargeDecImagePressed_Aqua" />
                </SpinEditLargeDecrement>
            </ImagesEditors>
        </dx:ASPxGridView>
        <dxwgv:ASPxGridViewExporter ID="gridExport" runat="server" GridViewID="UserList">
        </dxwgv:ASPxGridViewExporter>
    </div>
    </form>
</body>
</html>
